package com.ruoyi.hr.service;


import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.domain.CompanysRegister;
import com.ruoyi.hr.domain.DepartmentsRegister;
import com.ruoyi.hr.util.BaseResult;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface DepartAdminService {

    /**
     * 获取登记表所有新增类型的数据
     *
     * @return
     */
    public List<DepartmentsRegister> getDepartmentsRegister(int PageNum, int PageSize,DepartmentsRegister departmentsRegister, List<Authority> authorities);


    int findCount(DepartmentsRegister departmentsRegister, List<Authority> authorities);


    /**
     * 新增登记部门
     *
     * @param departmentsRegister
     * @return
     */
    public int insertDepartmentsRegister(DepartmentsRegister departmentsRegister);




    List<Map<String,Object>> findDepList(Map map,Authority authority);
    Map<String,Object> findDepAdd(String id);
    List<Map<String,Object>> findDepByCompId(String compId);
    int editDepAdd(Map map);
    int deleteDepAdd(String ids);
    BaseResult procedureDepAdd(String allId, String procedure);

    List<Map<String,Object>> findEditDep(Map map,Authority authority);
    BaseResult addEditDep(String allDep,String type);

    int editDepInvalid(Map map);

    List<Map<String,Object>> findDataHistory(Map map,Authority authority);
}
